package com.gjzt.business.media.inter;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.gjzt.business.media.model.MediaFile;

public interface MediaFileMapper {
    int insert(MediaFile record);
    
    MediaFile selectByPrimaryKey(String id);
    
    MediaFile selectByFilePath(String path);
    
    void updateByPrimaryKey(MediaFile record);
    
    List<MediaFile> findMediaFileBySourceTypeAndDataId(@Param("sourceType") String sourceType, @Param("sourceDataId") String sourceDataId, @Param("status") String status);

    void deleteBySourceTypeAndDataId(@Param("sourceType") String sourceType, @Param("sourceDataId") String sourceDataId);
}